import request from '@/utils/request'

// 人员列表
export function pageList(params) {
    return request({
      url: '/sysUser/pageList',
      method: 'post',
      headers: {
        "Content-Type": "application/json;charset=UTF-8",
      },
      data: params
    })
  }

// 新增系统用户
export function addSysUser(params) {
    return request({
      url: '/sysUser/addSysUser',
      method: 'post',
      headers: {
        "Content-Type": "application/json;charset=UTF-8",
      },
      data: params
    })
  }

// 删除人员
export function delSysUser(params) {
  return request({
    url: '/sysUser/delSysUser',
    method: 'get',
    params
  })
}

// 修改人员
export function updateSysUser(params) {
  return request({
    url: '/sysUser/updateSysUser',
    method: 'post',
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data: params
  })
}